import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
// import { allChannelListAPI } from '@/api'
import { NavBar, Form, Field, Button, Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, List, PullRefresh } from 'vant'

Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Cell)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)

Vue.config.productionTip = false
Vue.use(NavBar)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

// async function myFn () {
//   try {
//     const res = await allChannelListAPI()
//     console.log(res) // 后台返回的频道数据
//   } catch (err) {
//     console.log(err)
//   }
// }
// myFn()
